package com.hongdee.insurance.task.dao.impl;

import com.hongdee.base.basedao.impl.BaseDaoImpl;
import com.hongdee.crm.contact.entity.TCrmCarTaskHelp;
import com.hongdee.insurance.task.dao.ITInsuranceTaskSeekHelpDao;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

@Component
public class TInsuranceTaskSeekHelpDaoImpl extends BaseDaoImpl implements ITInsuranceTaskSeekHelpDao {

    /**
     * 获得求助详细
     * @param id
     * @return
     * @throws Exception
     */
    @Override
    public TCrmCarTaskHelp getTaskHelpInfo(String id) throws Exception {
        String hql=" from TCrmCarTaskHelp where id=:id ";
        Map<String,Object> map=new HashMap<>();
        map.put("id",id);
        return (TCrmCarTaskHelp) this.getHibernateDao().findEntityByHqlWithParams(hql,map);
    }
}
